package com.vueapi.constant;

public enum ErrorCodeEnum {

    PARAMS_ERROR(10001,"参数有误"),
    ACCOUNT_PWD_ERROR(10002,"用户名或密码错误"),
    TOKEN_ERROR(401,"TOKEN不合法"),
    TOKEN_OUT(401,"TOKEN过期"),
    TOKEN_NULL(401,"TOKEN不存在"),
    ACCOUNT_NULL(401,"TOKEN用户不存在"),
    UPLOAD_IMG_ERROR(10003,"图片上传失败！"),
    DELETE_COMMENT_ERROR(10020,"评论删除失败"),
    AUDIT_COMMENT_ERROR(10021,"评论审核失败"),
    COMMENT_LENGTH_MORE(10022,"评论内容过长");


    private int code;
    private String msg;

    ErrorCodeEnum(int code, String msg){
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
